package cn.jathlon.bigdata;

/**
 * 稀疏矩阵抽象类
 * @author chen
 *
 */
public class AbstractSparseMatrix {
	
    /**
     * @return smallest m such that 2**m>=t
     */
    public static int minExponent(int t) {
        for (int i = 0; ; ++i) {
            int p = 2 << i;
            if (t <= p) 
            	return i + 1;
        }
    }

}
